home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / earcd / misc / emu / arosdev.lha / AROS / rom / utility / getnamespace.c < prev    next >
C/C++ Source or Header  |  1997-01-09  |  863b  |  33 lines

  1. /*
  2.     (C) 1996 AROS - The Amiga Replacement OS
  3.     $Id: getnamespace.c,v 1.1 1996/12/18 01:27:35 iaint Exp $
  4.     $Log: getnamespace.c,v $
  5.     Revision 1.1  1996/12/18 01:27:35  iaint
  6.     NamedObjects
  7.  
  8.  
  9.     Desc: GetNameSpace - Internal utility.library function.
  10. */
  11. #include "utility_intern.h"
  12.  
  13. /* GetNameSpace: Internal function that gets the NameSpace to use.
  14.     Will look at either the supplied NameSpace, or use the Global
  15.     NameSpace.
  16.  
  17.     History
  18.         11-08-96    iaint   Internal NameSpace function.
  19.         19-10-96    iaint   Changed to more logical NamedObject format.
  20. */
  21.  
  22. struct NameSpace *
  23. GetNameSpace(struct NamedObject *nameSpace, struct UtilityBase *UtilityBase)
  24. {
  25.     struct IntNamedObject *no;
  26.  
  27.     no = GetIntNamedObject((nameSpace 
  28.         ? nameSpace 
  29.         : GetIntUtilityBase(UtilityBase)->ub_GlobalNameSpace));
  30.  
  31.     return no->no_NameSpace;
  32. }
  33.